package com.zmm.merchant.service;

import com.zmm.common.exception.handle.BusinessException;
import com.zmm.merchant.model.Merchant;

/**
 * @author 900045
 * @description:
 * @name MerchantService
 * @date By 2021-07-06 11:22:39
 */
public interface MerchantService {
	
	/**
	 * 新增商家业务 -- 接口
	 * @author: 900045
	 * @date: 2021-07-06 11:31:41
	 * @throws BusinessException
	 * @param merchant: 
	 * @return: boolean
	 **/
	boolean addMerchant(Merchant merchant) throws BusinessException;

	/**
	 * 根据 商家ID 查询商家信息业务 -- 接口
	 * @author: 900045
	 * @date: 2021-07-06 15:09:33
	 * @throws 
	 * @param merchantId: 
	 * @return: com.zmm.merchant.model.Merchant
	 **/
	Merchant findOneMerchantByMerchantId(Integer merchantId);
	
	/**
	 * 更新商家信息业务 -- 接口
	 * @author: 900045
	 * @date: 2021-07-06 15:23:45
	 * @throws 
	 * @param merchant: 
	 * @return: boolean
	 **/
	boolean modifyMerchant(Merchant merchant);
	
	/**
	 * 根据 商家ID 更新审核状态业务 -- 接口
	 * @author: 900045
	 * @date: 2021-07-06 15:49:38
	 * @throws 
	 * @param status: 要修改的状态
	 * @param merchantId: 商家ID
	 * @return: boolean
	 **/
	boolean modifyMerchantStatus(Integer status,Integer merchantId);
	
	/**
	 * 根据 商家ID 更新上下架业务 -- 接口
	 * @author: 900045
	 * @date: 2021-07-07 10:13:55
	 * @throws BusinessException
	 * @param soldOut: 
	 * @param merchantId: 
	 * @return: boolean
	 **/
	boolean modifyMerchantSoldOut(Integer soldOut,Integer merchantId) throws BusinessException;
}
